package com.ulife.permission.module.screen;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.Navigator;
import com.ulife.common.WebConstant;

public class Logout {

	@Autowired
	private HttpServletRequest request;

	
	public void execute(Context context, Navigator nav) {
		// 清除session中的user
		request.getSession().removeAttribute(WebConstant.SYS_USER_SESSION_KEY);
		nav.forwardTo("login");
	}

}
